<?php
/**
* 跨境电商商城系统
 * =============================================
 * Copy right 2016-2026 大连熠泽科技网络有限公司
 * ---------------------------------------------
 * 官方网址: http://www.yizehuitong.com
 * =============================================
 * @author : yizehuitong
 * @date : 2019.10
 * @version : v2.0
 */

namespace addons\NsMemberShare\api\controller;

use addons\NsMemberShare\data\service\MemberShare as MemberShareService;
use app\api\controller\BaseApi;

/**
 * 会员行为——分享
 */
class MemberShare extends BaseApi
{
	/**
	 * 分享奖励
	 */
	public function shareReward()
	{
		$title = '分享奖励';
		if (empty($this->uid)) {
			return $this->outMessage($title, "", '-9999', "无法获取会员登录信息");
		}
		$member_share = new MemberShareService();
		$res = $member_share->memberShare($this->uid);
		$this->outMessage($title, $res);
	}
}